Skip to content

Comments

feat: create custom Claude Code command for commits#6

Merged
p-iknow merged 1 commit intomainfrom
i5-feat/create-custom-claude-code-command-for-commits
Oct 11, 2025
Merged

feat: create custom Claude Code command for commits#6
p-iknow merged 1 commit intomainfrom
i5-feat/create-custom-claude-code-command-for-commits

Conversation

@p-iknow
Copy link
Contributor

@p-iknow p-iknow commented Oct 11, 2025

Requirement

Resolves #5

Create a custom Claude Code slash command that simplifies the commit process by analyzing changes and generating structured commit messages following the project's commit conventions.

Implementation

Created make-commit.md Slash Command:

  • Added .claude/commands/make-commit.md with comprehensive commit workflow
  • Implements 6-step process: analyze changes → group by purpose → determine type and message → format → present for review → execute
  • Supports all 8 commit type conventions: feat, fix, doc, config, refactor, format, test, perf
  • Provides clear guidance on Requirement vs Goal usage in commit messages
    • Default: Use Requirement: for most commits
    • Exception: Use Goal: only for proactive improvements without specific requirements

Updated Commit Conventions:

  • Added format type for code formatting changes (replacement for style)
  • Updated make-branch.md to include format type
  • Standardized commit message structure with Requirement/Goal and Implementation sections

Command Features:

  • Analyzes both staged and unstaged changes
  • Groups related changes logically
  • Generates structured commit messages with type prefix
  • Interactive confirmation before committing
  • Ensures logical separation of concerns

Human Check

🤖 Generated with Claude Code

  • I reviewed it

Requirement:
Provide a standardized slash command for creating well-structured commits following the project's conventions. Update commit type documentation to include the complete set of conventions (feat, fix, doc, config, refactor, format, test, perf) with clear guidance on using Requirement vs Goal in commit messages.

Implementation:
- Created make-commit.md slash command with comprehensive commit workflow
- Added all 8 commit type conventions (feat, fix, doc, config, refactor, format, test, perf)
- Defined Requirement vs Goal usage: Requirement as default, Goal for proactive improvements
- Added format type for code formatting changes (replacement for style)
- Updated make-branch.md to include format type
- Structured command to analyze changes, group by purpose, and propose commits
- Included commit message template with Requirement/Goal and Implementation sections

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the feat New features or enhancements label Oct 11, 2025
@p-iknow p-iknow marked this pull request as ready for review October 11, 2025 10:42
@p-iknow p-iknow added the agent Agent rules and commands label Oct 11, 2025
@p-iknow p-iknow merged commit 14ea872 into main Oct 11, 2025
4 checks passed
@p-iknow p-iknow deleted the i5-feat/create-custom-claude-code-command-for-commits branch October 11, 2025 10:44
@p-iknow p-iknow moved this to Done in oss-kit-project Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Agent rules and commands feat New features or enhancements

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

feat: create custom Claude Code command for commits

1 participant